﻿using Forum.Model.Entity;
using Forum.Repository.Interface;
using Forum.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Forum.Service.Service
{
    public class ParameterService : IParameterService
    {
        private IAppRepository<SysParameters> Repository;
        public ParameterService(IAppRepository<SysParameters> appRepository)
        {
            Repository = appRepository;
        }
        /// <summary>
        /// 获取文章的状态列表
        /// </summary>
        /// <returns></returns>
        public List<SysParameters> GetStatusList()
        {
            return Repository.GetList(a => a.Key == "PublishStatus");
        }
    }
}
